#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_datatype.py
# author:wmf
# datetime:2021/3/5 22:11
# software: PyCharm
'''
this is function description
'''
# import module your need

import sys

print(sys.float_info )

#类型判断
a=123
print(isinstance(a,int))

#数值运算
print(5+4)
print(6/2)
print(17%3)
print(2**4)
print(17&3)

#列表
l1=[1,2,3,"xyz"]
print(l1)
l1.append('s')
print(l1)
print(l1[2])
print(l1[1:3])
print(l1[2:])
l1[0]=4
print(l1)
print(l1[1:4:2])

#字典
d = {1:'tom',2:'jack'}
print(d)

student={"NO":12345,"Name":"tom","class":"软件1901","score":100}
print(student)

#运算符
print(3>2)
print(3==3)
print(3!=4)
print(["abc","ABC",100,200]==["abc","ABC",100,200])
print(["abc",100,300]<["abc",200,200])

#翻转

def reverseWords(input):
    inputWords = input.split(" ")
    inputWords = inputWords[-1::-1]
    output = ' '.join(inputWords)
    return output

if __name__ =="__main__":
    input = 'i like python'
    rw = reverseWords(input)
    print(rw)